Skip to main content

UploadPartCopy

Description

UploadPartCopy interface uploads a Part by copying data from an existing Object.

Request Method

POST

Request Path

/apsara/route/OneRouter/UploadPartCopy

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
x-oss-copy-source-rangeBODYintegerNobytes=100-6291756the copy range of the source object. For example, if bytes = 0 to 9 is set to copy the 10 characters from 0 to 9. Default value: None When the request header is not specified, the entire source object is copied. when the request header is specified, the returned message will contain the length of the entire file and the range of the copy. for example, the Content-Range: bytes 0~9/44 indicates that the length of the entire file is 44, and the range of the copy is 0~9. when the specified range does not conform to the specification, the entire source object is copied and the Content-Range is not mentioned in the result.
versionBODYstringNo2016-01-01version of api
x-oss-copy-sourceBODYstringYesoss-example/src-objectcopy source address (must have readable permission). Default value: None

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}